package com.jmgd.cjlx.controller;

import com.jmgd.cjlx.service.QwService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/qw")
public class QwController {
    @Autowired
    QwService qwService;


    /**
     *
     * @return
     * @throws Exception
     */
    @RequestMapping(value = "/getDeptList", method = RequestMethod.GET)
    public String getDeptList() throws Exception {
        qwService.getDeptmentList(null);
        return "成功";
    }


    /**
     *
     * @return
     * @throws Exception
     */
    @RequestMapping(value = "/getCustomerList", method = RequestMethod.GET)
    public String getCustomerList() throws Exception {
       // String[] userIdList = {"JM4451"};
        qwService.getEmpList(null,"1299");
        return "成功";
    }
}
